<include file="Public/ADMIN/HTML/Admin_header/admin_first_head.html" />
<title>公告管理{$Think.const.TITLE}</title>
<include file="Public/ADMIN/HTML/Admin_header/admin_css_and_js_notice.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_title.html" />
<include file="Public/ADMIN/HTML/Admin_header/admin_middle_list.html" />
<include file="Public/ADMIN/HTML/Left_list/notice_left_list.html" />
<!-- DataTables Example -->
<script>
	
    function noticeDel(xid){ 
			var gradename = xid;
			address = "{$Think.const.DOMAIN_NAME}Admin/Notice/noticeDel/id/"+gradename; // 璁剧疆$.get璋冪敤璺緞
			var delTr = document.getElementById(xid);                                  // 鑾峰彇鍔ㄦ�佺殑琛ㄦ牸ID
			$.get(address,function(str){                                               // 鏂规硶涓嶅お鏄庣櫧锛屽ぇ姒傛剰鎬濇槸鑾峰彇$.get杩斿洖鐨勫��
				if(str==0){                                                            // 濡傛灉杩斿洖鐨勬椂0鐨勮瘽灏辫瘉鏄庢槸瀵圭殑
				ZENG.msgbox.show("删除成功！", 4, 1000);
				delTr.parentNode.removeChild(delTr);                                   // 鍒犻櫎璇ヨ
			}else{                                                                     // 鍏朵粬鎯呭喌閮芥槸鍘熷瘑鐮侀敊璇�    
				ZENG.msgbox.show("删除失败！", 5, 2000);
			}
		    });	 
	}
</script>
<div class="row" style="height: 80%">
	<div class="col-lg-10" style="float: right">
		<div class="widget-container fluid-height clearfix">
			<div class="heading">
				<i class="icon-table"></i>公告列表
			</div>
			<div class="widget-content padded clearfix">
				<table class="table table-bordered table-striped dataTable"
					id="datatable-editable">
					<thead>
						<th style="width: 10%; text-align: center;">编号</th>
						<th style="width: 60%; text-align: center;">内容</th>
						<th style="width: 20%; text-align: center;">添加时间</th>
						<th style="width: 10%; text-align: center;">操作</th>
					</thead>
					<tbody>
						<assign name="number" value="1" />
						<volist name="showList" id="vo">
						<tr id="{$vo.id}">
							<td style="text-align: center;">{$number++}</td>
							<td style="text-align: center;">{$vo.content}</td>
							<td style="text-align: center;">{$vo.adddate}</td>
							<td style="text-align: center; width: 10%">
								<div class="action-buttons" style="margin-left: -14%">
									<a class="table-actions" href="javascript:void(0);"
										onclick="if(confirm('确定删除么？')==0){history.go(0); return false;}else{javascript:noticeDel({$vo.id})}"
										title="删除"><i class="icon-trash"></i></a>
								</div>
							</td>
						</tr>
						</volist>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>
<!-- end DataTables Example -->
</div>
</div>
</body>
</html>